# -*- coding: utf-8 -*-
# @Time: 2021/12/9 18:29
# @Author: jiuwu
# @Email: 2359196586@qq.com
# @File: urls.py
# @Software: PyCharm
from rest_framework.routers import DefaultRouter
from .views import *

urlpatterns = [

]

router = DefaultRouter()
router.register('classification', ClassificationViewSet)
router.register('classifications', ClassificationStudentViewSet)
router.register('commodity', CommodityViewSet)
router.register('commoditys', CommodityStudentViewSet)
router.register('cart', ShoppingCartViewSet, basename='shoppingcart')
router.register('order', OrderViewSet, basename='shoppingcart')
urlpatterns += router.urls
